var $ = require("../../utils/Ajax.js");
Page({
  data: {
    Interaction:[]
  },
  onLoad: function (options) {
    var that = this;
    wx.setNavigationBarTitle({
      title: "互动通知"
    }) 
    $.Ajax("api/friends2", "GET", {}, function (res) {
      if (res.s) {
        console.log(res)
        that.setData({
          Interaction: res.d.users
        })
      } else {
        wx.showToast({
          title: res.m,
          icon: 'none',
          duration: 1500
        })
      }
    })
  },

  onShow: function () {

  },
  
  // 点击进入个人资料
  Data: function(e){
    var Id = e.currentTarget.dataset.id;
    wx.navigateTo({
      url: '../Data/Data?Id=' + Id,
    })
  }
})